package com.itheima.mapper;

import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author 17779
* @description 针对表【student(学员表)】的数据库操作Mapper
* @createDate 2025-08-04 21:05:34
* @Entity com.itheima.pojo.Student
*/

@Mapper
public interface StudentMapper {


    List<Student> page(StudentQueryParam studentQueryParam);

    void deleteById(List<Integer> ids);

    void insert(Student student);

    Student getInfoById(Integer id);

    void updateById(Student student);

    void updateViolationById(Integer id, Integer score);

    @MapKey("name")
    List<Map> getStudentDegreeData();

    @MapKey("clazzName")
    List<Map<String, Object>> getStudentCountData();
}
